package org.boot.fast.core.api.mapper.provider.impl;

import org.boot.fast.core.api.mapper.provider.entity.AnalysisResultInfo;

import java.util.Map;

import static org.boot.fast.core.api.mapper.provider.DynamicSqlProvider.*;

public class DynamicUpdateProvider {

    /**
     * 构建UPDATE语句
     */
    public static AnalysisResultInfo buildUpdateStatement(String originalSql, Map<String, Object> params) {
        if (params == null || params.isEmpty()) {
            return new AnalysisResultInfo(convertParameterFormat(originalSql), params);
        }
        return new AnalysisResultInfo(convertParameterFormat(originalSql), params);
    }

}
